We only connect to this signal if sl->obejct is a GtkAccessible, so only
disconnect from it on the same condition.
Fixes #2980
GtkWidget *stack;
GtkStackPage *page;
GtkATContext *context;
- if (sl->object)
+
+ if (sl->object && GTK_IS_ACCESSIBLE (sl->object))
{
context = gtk_accessible_get_at_context (GTK_ACCESSIBLE (sl->object));
g_signal_handlers_disconnect_by_func (context, refresh_all, sl);
{
GtkInspectorA11y *sl = GTK_INSPECTOR_A11Y (o);
- if (sl->object)
+ if (sl->object && GTK_IS_ACCESSIBLE (sl->object))
{
GtkATContext *context;